package com.kai.mqtt.session;

import io.netty.channel.Channel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * @author weijk
 * @since 2024/6/9
 */
@Data
@Accessors(chain = true)
public class Session {

    /**
     * 通道
     */
    private Channel channel;

    /**
     * 客户端 id
     */
    private String clientId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 是否清除会话
     */
    private Boolean isCleanSession;

    /**
     * 保活时间
     */
    private Integer keepAliveTime;

    /**
     * 连接时间
     */
    private LocalDateTime connectTime;
}
